﻿@using System.Linq;
@{
    string valueToDisplay = string.Empty;
    string[] selectedValues = Model.SelectedValues;
    if (selectedValues != null) {
        string valueFormat = T("{0}").ToString();
        string[] translatedValues = selectedValues.Select(v => string.Format(valueFormat, T(v).Text)).ToArray();
        string separator = T(", ").ToString();
        valueToDisplay = string.Join(separator, translatedValues);
    }
    if (!string.IsNullOrEmpty(valueToDisplay)) {
        <span class="value per">@Html.Raw(valueToDisplay)</span>
    }
}